putResult

inline suspend fun <T> HttpClient.putResult(urlString: String, noinline block: HttpRequestBuilder.() -> Unit = {}): Result<T>

Performs an HTTP PUT request synchronously and returns the result as a Result of type T.

Return

Result representing the synchronous operation.

Parameters

urlString

The URL for the PUT request.

block

Optional, allows customization of the request using HttpRequestBuilder.